<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>FetchEntityMaterial</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">FetchEntityMaterial()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Result = <font color="#006666"><b>FetchEntityMaterial</b></font>(#Entity, #Material [, SubEntity])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Fetch the material associated to the specified #Entity with <a href="setentitymaterial.html">SetEntityMaterial()</a>. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
 
The entity to use. 

 

</td></tr>
<tr><td><i>#Material</i></td>
<td> 
 
The new create <a href="../material/index.html">material</a> number. 

 

</td></tr>
<tr><td><i>SubEntity (optional)</i></td>
<td> 
 
The sub-entity to get the material from. First sub-entity index starts at 0 (representing the main entity). 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



Returns nonzero on success and zero on failure. 

 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=entityz.html>EntityZ()</a> - <a href=index.html>Entity Index</a> - <a href=freeentity.html>FreeEntity()</a> -&gt;



</body></html>